<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/5/29 0029
 * Time: 22:04
 */

namespace console\controllers;

use app\models\ArcAndroid;
use app\models\ArcClassify;
use app\models\ArcProgress;
use app\models\ArcTrain;
use app\models\ThingRecordFile;
use common\helps\ClassifySearch;
use common\helps\Tools;
use Yii;
use yii\console\Controller;

abstract class CommonController extends Controller
{

    public $redis = "";
    public function beforeAction($action)
    {
        //连接redis
        //$this->redis = \Yii::$app->redis;
        $this->redis = \Yii::$app->cache;
        date_default_timezone_set('PRC');//设置时间时区为中国
        return parent::beforeAction($action);
    }
}